<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace plugins\qbt_vote\validate;

use think\Db;
use think\Validate;

class VoteValidate extends Validate
{

    protected $rule = [
        'name'       => 'require',
        'everytime'  => 'require',
        'everytime'  => 'require|number|egt:1',
    ];
    
    protected $message = [
        'name.require' => '标题必须填写',
        'everytime.require' => '单次可投票数必须填写',
        'everytime.number' => '请正确填写次数',
        'everytime.egt' => '次数必须大于等于1',
    ];
}